from django import forms


# 接收修改规则的代码
class RuleEditorForms(forms.Form):
    rule_id = forms.IntegerField(required=True)
    code = forms.CharField(required=True, min_length=1)


# 接收新建规则
class RuleCreateForms(forms.Form):
    name_en = forms.CharField(required=True, min_length=1)
    name = forms.CharField(required=True, min_length=1)

# 接收删除规则
class RuleDeleteForms(forms.Form):
    rule_id = forms.IntegerField(required=True)



# 接收修改模型的代码
class ModelEditorForms(forms.Form):
    model_id = forms.IntegerField(required=True)
    code = forms.CharField(required=True, min_length=1)
